﻿using Abp.Domain.Uow;
using Abp.Events.Bus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace hhg.Web.Controllers
{
    public class DefaultController : Controller
    {
        private readonly ITaskAppService _itaskAppService;
        public DefaultController(ITaskAppService itaskAppService)
        {
            _itaskAppService = itaskAppService;
        }
         
        // GET: Default
        [Abp.Web.Mvc.Authorization.AbpMvcAuthorize]
        public ActionResult Index()
        {

            

            _itaskAppService.CreateTask(new CreateTaskInput    {  AssignedPersonId=3, Description="00:"+DateTime.Now.ToString()});

            return View(_itaskAppService.GetPageList().ToList());
        }
    }
}